package org.wang.generalcode.modules.exam.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.wang.generalcode.modules.sys.dict.impl.DictTranslateServiceImpl;
import org.wang.generalcode.support.trans.core.annotation.Dictionary;
import org.wang.generalcode.support.trans.core.annotation.Translate;
import org.wang.generalcode.support.trans.core.annotation.Translator;

import java.io.Serializable;
import java.util.Date;

/**
 * 试题信息表
 *
 * @author wz 1013069553@qq.com
 * @since 1.0.0 2024-11-22
 */
@Data
@Schema(description = "试题信息表")
public class QuestionInfoVO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "课程名称")
    private Integer subjectId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "试题内容")
    private String content;

    @Schema(description = "阶段id")
    @Translate(dictionary = @Dictionary(translator = DictTranslateServiceImpl.class), conditionField = "V:92", translateField = "schoolTypeName")
    private Integer schoolType;

    @Schema(description = "试题类型")
    @Translate(dictionary = @Dictionary(translator = DictTranslateServiceImpl.class), conditionField = "V:93", translateField = "questionTypeName")
    private Integer questionType;

    @Schema(description = "年级")
    private Integer gradeInfoId;

    private String subjectName;

    private String schoolTypeName;

    private String gradeName;
    private String questionTypeName;

}